<%--
  Created by IntelliJ IDEA.
  User: MSI-NB
  Date: 2021/10/18
  Time: 21:59
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
  <title>报错啦</title>

  <script src="../../js/jquery-3.6.0.js"></script>
  <!-- 最新版本的 Bootstrap 核心 CSS 文件 -->
  <link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/3.4.1/css/bootstrap.min.css"
        integrity="sha384-HSMxcRTRxnN+Bdg0JdbxYKrThecOKuH5zCYotlSAcp1+c8xmyTe9GYg1l9a69psu" crossorigin="anonymous">

  <!-- 可选的 Bootstrap 主题文件（一般不用引入） -->
  <link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/3.4.1/css/bootstrap-theme.min.css"
        integrity="sha384-6pzBo3FDv/PJ8r2KRkGHifhEocL+1X2rVCTTkUfGk7/0pbek5mMa1upzvWbrUbOZ" crossorigin="anonymous">

  <!-- 最新的 Bootstrap 核心 JavaScript 文件 -->
  <script src="https://stackpath.bootstrapcdn.com/bootstrap/3.4.1/js/bootstrap.min.js"
          integrity="sha384-aJ21OjlMXNL5UyIl/XNwTMqvzeRMZH2w8c5cRVpzpU8Y5bApTppSuUkhZXN0VxHd"
          crossorigin="anonymous"></script>

  <!-- 引入 Bootstrap -->
  <link href="https://cdn.bootcss.com/bootstrap/3.3.7/css/bootstrap.min.css" rel="stylesheet">

  <link rel="stylesheet" href="../../css/menustyle.css">

</head>
<body>


<div class="container-fluid">
  <div class="row-fluid clearfix">
    <!-- 导航栏 -->
    <div id="sidebar">
      <header>
        <a href="#">后台管理</a>
      </header>
      <ul class="nav">
        <li>
          <a href="${pageContext.request.contextPath}/admin/allReader">
            读者管理
          </a>
        </li>
        <li>
          <a href="${pageContext.request.contextPath}/bookIO/toAllIOBook">
            出入库管理
          </a>
        </li>
        <li>
          <a href="${pageContext.request.contextPath}/Lend/adminAllBook">
            借阅管理
          </a>
        </li>
        <li>
          <a href="${pageContext.request.contextPath}/type/allType">
            分类管理
          </a>
        </li>
      </ul>
    </div>

    <!-- 正文 -->
    <div id="content">
      <div class="container-fluid" style="margin-left: 250px">
        <!-- 网页内容 -->
        <div align="center" style="margin-top: 100px">
          <p>用户名重复!</p>
          <p>操作失败!</p>
          <a href="${pageContext.request.contextPath}/admin/allReader">点击返回首页</a><br>
          <span id="count"><b>5</b></span>秒后自动返回...

        </div>
      </div>
    </div>
  </div>
</div>
<script type="text/javascript">
  $(function () {
    var count=5;
    setInterval(function () {
      count--;
      if (count<=0) window.location.href = "${pageContext.request.contextPath}/admin/allReader";
      $("#count").html("<b>"+count+"</b>")

    },1000);

  });
</script>
</body>
</html>
